package runOob;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TestArray {

    public static void main(String[] args) {
        int size = 10;
        SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String[] myList = new String[size];
        for (int i = 0; i < 10; i++) {
            Date date = new Date();
            myList[i] = ft.format(date);
            System.out.println(myList[i]);
        }
    }
}
